﻿using System.Web.Mvc;

namespace Arms.Presentation.Web.Areas.People
{
    public class PeopleAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "People";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "People_default",
                "People/{controller}/{action}/{id}",
                new { controller = "Authentication", action = "Login", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "People_user_profile", 
                "People/{controller}/{action}/{username}",
                new { controller = "User", action = "Profile", username = UrlParameter.Optional}
            );
        }
    }
}
